package edu.mse.camel.client.uml.collab.emflistener;

import org.eclipse.emf.common.notify.Notification;

import edu.mse.camel.client.core.events.model.ModelUpdateEvent;
import edu.mse.camel.client.core.idcache.ModelID;

public class EventUtil {
	
	public static ModelUpdateEvent createModelEvent(Notification notification,
			ModelID modelID, ModelUpdateEvent.KIND kind, ModelUpdateEvent.EVENT_TYPE type) {
		ModelUpdateEvent me = new ModelUpdateEvent(
				modelID, 
				kind, 
				type);
		me.setFeatureID(notification.getFeatureID(notification.getFeature().getClass()));
		return me;
	}
}
